//
//  ShareBtn1.m
//  LawyerAssistant
//
//  Created by 戴伟 on 2019/1/7.
//  Copyright © 2019 戴伟. All rights reserved.
//

#import "ShareBtn1.h"

@implementation ShareBtn1

-(instancetype)initWithCoder:(NSCoder *)aDecoder{
    if (self = [super initWithCoder:aDecoder]) {
        self.titleLabel.font = [UIFont systemFontOfSize:14];
        [self setTitleColor:BLACKTEXTCOLOR forState:UIControlStateNormal];
        self.imageView.contentMode = UIViewContentModeCenter;
        self.titleLabel.textAlignment = NSTextAlignmentCenter;
    }
    return self;
}

-(CGRect)titleRectForContentRect:(CGRect)contentRect{
    return CGRectMake(0, contentRect.size.height-30, contentRect.size.width, 30);
}

-(CGRect)imageRectForContentRect:(CGRect)contentRect{
    return CGRectMake(0, 0, contentRect.size.width, contentRect.size.height-30);
}

@end
